﻿using System.ComponentModel.DataAnnotations;

namespace SinBiota.Model.Entities.CustomAttributes
{
    public class ValidEmailAttribute : RegularExpressionAttribute
    {
        public ValidEmailAttribute() : base("^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.([a-z]{2,4})$"){ }
    }
}